package com.rowline.admin.module.util.constant;

/**
 * ClassName:AppContants
 * Created by 245167
 * on 2017/8/11  11:10
 * description:
 */
public interface ContextContants {

    /**
     * Boolean 常量 Y
     */
    String YES = "Y";

    /**
     * Boolean 常量 N
     */
    String NO = "N";

    /**
     * 管理员登录key
     */
    String CURRENT_LOGIN_SEESION_KEY = "CURRENT_LOGIN_USER";

    /**
     * 功能类型-菜单
     */
    Integer FUNCTIONAL_TYPE_MENU = 1;

    /**
     * 功能类型 -操作功能
     */
    Integer FUNCTIONAL_TYPE_FUNCTION = 2;

    /**
     * 错误编码
     */
    String ERROR_CODE_NOLOGIN = "101"; // 未登陆
    String ERROR_CODE_NOAUTH = "102"; // 没有访问权限

    /**
     * 任务运行状态 1 = 运行中
     */
    Integer JOB_STATE_RUNNING = 111;

    /**
     *
     */
    Integer JOB_STATE_NONE = -1;
    Integer JOB_STATE_NORMAL = 0;
    Integer JOB_STATE_PAUSED = 1;
    Integer JOB_STATE_COMPLETE = 2;
    Integer JOB_STATE_ERROR = 3;
    Integer JOB_STATE_BLOCKED = 4;

    /**
     * 验证码的sessionkey
     */
    String CAPTCHA_SESSION_KEY = "CAPTCHA_SESSION_KEY";

    /**
     * 上次访问的url的sessionkey
     */
    String LAST_URL_SESSION_KEY = "LAST_RUL_SESSION_KEY";

    /**
     * 短信验证码的session key
     */
    String SMS_CODE_SESSION_KEY = "SMS_CODE_SESSION_KEY";

    /**
     * 是否记录运行日志的 配置key
     */
    String SETTINGS_SAVE_RUNLOG = "IS_SAVE_RUNLOG";

    // ************* 通用设置 ***************/

    /**
     * 设置的系统授权码key
     */
    String SETTINGS_ADMIN_AUTHORIZATION = "ADMIN_AUTHORIZATION";

    /**
     * 是否启用了redis集中缓存
     */
    String SETTINGS_ENABLE_REDIS_CACHED = "ENABLE_REDIS_CACHED";

    /**
     * 是否启用登录验证码
     */
    String SETTINGS_IS_LOGIN_VCODE = "IS_LOGIN_VCODE";

    /**
     * 是否显示倒计时
     */
    String SETTINGS_IS_SHOW_COUNTDOWN = "IS_SHOW_COUNTDOWN";

    // 文件保存路径
    String SETTING_SAVE_FILE_PATH = "SAVE_FILE_PATH";

    // 文件读取时的域名
    String SETTING_FILE_READER_DOMAIN = "FILE_READER_DOMAIN";

    // /***************************/
    //用户权限目录
    String PARAM_ADMIN_AUTHORIZATION = "secureAuth";

    String SEQUENCE_TRADE_NO = "sequnce_trade_no";
    String SEQUENCE_MATCH_NO = "sequnce_match_no";
    String SEQUENCE_FILE_NO = "sequnce_file_no";

    String SYSTEM_OPERATER_NAME = "ZSSYSTEM";

    String ADMIN_LOGIN_URL = "/manager/tologinPage.do";
    String MEMBER_LOGIN_URL = "/login.jsp";

    // *************** 系统消息 **************
    /**
     * 消息类型 - 短信
     */
    String MESSAGE_TYPE_SMS = "SMS";

    /**
     * 消息类型 - 站内信
     */
    String MESSAGE_TYPE_SITEMSG = "SITEMSG";

    Integer MESSAGE_BUSINESS_TYPE_REGISTER = 1;
    Integer MESSAGE_BUSINESS_TYPE_RESTPWD = 2;
    Integer MESSAGE_BUSINESS_TYPE_PAYMATCHED = 3;
    Integer MESSAGE_BUSINESS_TYPE_RECEIPTMATCHED = 4;

    String SETTING_SMS_TEMPLATE_REGISTER = "SMS_TEMPLATE_REGISTER";
    String SETTING_SMS_TEMPLATE_RESTPWD = "SMS_TEMPLATE_RESTPWD";
    String SETTING_SMS_TEMPLATE_PAYMATCHED = "SMS_TEMPLATE_PAYMATCHED";
    String SETTING_SMS_TEMPLATE_RECEIPTMATCHED = "SMS_TEMPLATE_RECEIPTMATCHED";

    Integer SMS_SEND_STATUS_INIT = 0;
    Integer SMS_SEND_STATUS_SENDED = 1;
    Integer SMS_SEND_STATUS_SENDERR = 2;
    Integer SMS_SEND_STATUS_CANCEL = 3;

    String APPID_MANAGE = "ZS_MANAGE";
    String APPID_MEMEBER = "ZS_MEMBER";

    Long MAXDATE = 253402271999886L;

    // 请求令牌 -无用
    String REQUEST_TOKEN_KEY = "REQUEST_TOKEN";

    // /重建网络时使用
    String ROOT_MEMBER_NAME = "zs888";

    String SYS_ADMIN_USER = "mbool";
    // zsbool@123$
    String SYS_ADMIN_PWD = "8cb363f894d17996846476ce6a329504";

}
